//
//  Person.h
//  OC06_集合遍历_数组排序
//
//  Created by dllo on 16/5/27.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, retain) NSString *sex;

-(instancetype)initWithName:(NSString *)name withAge:(NSInteger)age withSex:(NSString *)sex;

-(NSComparisonResult)compareWithName:(Person *)otherPerson;

-(NSComparisonResult)compareWithAge:(Person *)otherPerson;
@end
